home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / Multi-Panel Dialogs 1.1 / MPD Sources / Generic Classes / CTargetable.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  908 b   |  37 lines  |  [TEXT/R*ch]

  1. // ===========================================================================
  2. //    File:                        CTargetable.h
  3. // Version:                    1.0 - Feb 1, 1996
  4. //    Author:                    Mike Shields (mshields@inconnect.com)
  5. //                            
  6. //    Copyright ©1996 Mike Shields. All rights reserved.
  7. // ===========================================================================
  8. //    CTargetable.cp        <- double-click + Command-D to see class definition
  9. //
  10. // Mixin class which allows the new sub class to have a "target border" 
  11. // shown around it when the object is the target.
  12.  
  13. #pragma once
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19. class CTargeterBorder;
  20.  
  21. class CTargetable
  22. {
  23. public:
  24.                             CTargetable();
  25.     virtual                ~CTargetable();
  26.  
  27.     virtual void        SetTargeterBox(CTargeterBorder* inBorder);
  28.     virtual Boolean    IsTargeted(void);
  29.     
  30. protected:
  31.     virtual void        ShowFocus(void);
  32.     virtual void        HideFocus(void);
  33.     
  34. private:
  35.     CTargeterBorder*    mBorder;
  36. };
  37.